package cn.kxm.util;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import com.sun.xml.internal.ws.policy.privateutil.PolicyUtils.Collections;

public class Test {
    public static void main(String[] args) {
		int[]a={1,3,5,7,9};
		int[]b={1,3,5,7,9};
		List<Integer> c=new ArrayList<Integer>();
		for (int i = 0; i < a.length-1; i++) {
			for (int j = i+1; j < b.length; j++) {
				int x=a[i]+b[j];
				if(!c.contains(x)){
					c.add(x);
				}
			}
		}
		java.util.Collections.sort(c);
		for (Integer ny : c) {
			System.out.println(ny);
		}
	}
}
